package chap07;
import java.util.concurrent.atomic.AtomicLong;
public class seven238 {
    public static void main(String[] args) throws Exception{
        AtomicLong num = new AtomicLong(100L);
        System.out.println("[原子数据修改]数据修改结果:"+num.compareAndSet(100L,300L));
        System.out.println(("[原子数据修改]新的数据内容:"+num.get()));
    }
}
